class Category < ActiveRecord::Base
  
   validates_presence_of(:name, :message => "could't be empty")
   validates_uniqueness_of(:name, :message => " already exists in Categories")
   
end
